package cn.edu.suse.epilepsy.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_sys_user")
public class SysUser {
    @TableId(value = "sys_user_id", type = IdType.AUTO)
    private Integer id;
    @TableField("sys_user_name")
    private String name;
    @TableField("sys_user_phone")
    private String phone;
    @TableField("sys_user_pwd")
    @JsonIgnore
    private String pwd;
    @TableField("sys_user_avatar")
    private String avatar;  //系统用户头像
    @TableField("created")
    @JsonFormat(pattern = "yy-MM-dd HH-mm-ss", timezone = "Asia/Shanghai")
    private Date created;
    @TableField("updated")
    private Date updated;
}